<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <p>
        <!-- 渲染部分 -->
    </p>
    <button>1</button>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <script>
        document.querySelector('button').addEventListener('click', e => {
            axios({
                url:'http://hmajax.itheima.net/api/province'
            }).then(e=>{
                document.querySelector('p').innerHTML=e.message
                // document.querySelector('p').innerHTML=e.data.list
            })
        })
    </script>
</body>

</html>